package cz.muni.fi.pa165.soap.client.editPannel;

import java.awt.FlowLayout;
import java.awt.Insets;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;

/**
 *
 * @author shifty
 */
public class TabButton extends JPanel  {

    private JButton button;
    
    public TabButton( String label ){

        super(new FlowLayout());
        setOpaque(false);
        add( new JLabel( label ));

        button = new JButton("x");
        button.setMargin(new Insets(-5,0,-3,0));
        add( button );

    }

    public void addActionListener(ActionListener al ) {
        button.addActionListener(al);
    }
}
